<!-- include tpl=head_lay -->
<script type="text/javascript">
var optconfig = {
	'width':'400px',
	'taxis':parseInt('{$total+1}') * 10,
	'pid':'{$pid}',
	'group_id':'{$group_id}'
}
</script>
<div class="layui-card">
	<div class="layui-card-header">
		{lang维护}
		<!-- if $popedom.set -->
		<div class="layui-btn-group fr">
			<input type="button" value="{lang添加内容}" onclick="$.phpok_opt(optconfig).create({'okVal':'{lang添加}'})" class="layui-btn layui-btn-sm" />
			<!-- if $_export -->
			<input type="button" value="{lang导出}" onclick="$.admin_opt.opt_export('{$group_id}','{$pid}',false)" class="layui-btn layui-btn-sm" />
			<!-- /if -->
			<input type="button" value="{lang导入}" onclick="$.admin_opt.opt_import('{$group_id}','{$pid}',false)" class="layui-btn layui-btn-sm" />
		</div>
		<!-- /if -->
	</div>
	<div class="layui-card-body">
		<table class="layui-table" lay-even>
		<thead>
			<tr>
				<th class="center" width="40">ID</th>
				<th>{lang值}</th>
				<th>{lang显示}</th>
				<th width="80">{lang排序}</th>
				<th ></th>
				
			</tr>
		</thead>
		<!-- loop from=$rslist key=$key value=$value -->
		<tr id="opt_{$value.id}">
			<td class="center">{$value.id}</td>
			<td>{$value.val}</td>
			<td>{$value.title}</td>
			<td>{$value.taxis}</td>
			<td>
				<div class="layui-btn-group">
					<input type="button" value="{lang子项}" onclick="$.win('{lang子项}_{$value.title}','{url ctrl=opt func=list pid=$value.id/}');" class="layui-btn  layui-btn-sm" />
					<!-- if $popedom.set -->
					<input type="button" value="{lang导入}"  onclick="$.admin_opt.opt_import('{$group_id}','{$value.id}')" class="layui-btn  layui-btn-sm" />
					<!-- if $value._export -->
					<input type="button" value="{lang导出}" onclick="$.admin_opt.opt_export('{$group_id}','{$value.id}',true)" class="layui-btn  layui-btn-sm" />
					<input type="button" value="{lang导出CSV}" onclick="$.admin_opt.opt_export_csv('{$group_id}','{$value.id}')" class="layui-btn  layui-btn-sm" />
					<!-- /if -->
					<input type="button" value="{lang编辑}" onclick="$.phpok_opt(optconfig).edit({$value.id},{'okVal':'{lang修改}'})" class="layui-btn  layui-btn-sm" />
					<input type="button" value="{lang删除}" onclick="$.admin_opt.opt_delete({$value.id},'{$value.title}')" class="layui-btn  layui-btn-sm layui-btn-danger" />
					<!-- /if -->
				</div>
			</td>
		</tr>
		<!-- /loop -->
		</table>
	</div>
</div>
<div id="html-edit-content" class="hide">
	<div class="layui-form">
		<div class="layui-form-item">
			<label class="layui-form-label">
				<span class="red">*</span> {lang显示}
			</label>
			<div class="layui-input-inline">
				<input type="text" name="title" class="layui-input" id="opt_title" />
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">
				<span class="red">*</span> {lang值}
			</label>
			<div class="layui-input-inline">
				<input type="text" name="val" id="opt_val" class="layui-input" />
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">{lang排序}</label>
			<div class="layui-input-inline">
				<input type="text" name="taxis" id="opt_taxis" class="layui-input" />
			</div>
		</div>
	</div>
</div>
<input type="hidden" id="parent_0" value="{$pid}" />

<!-- include tpl=foot_lay -->
